package db7;

public class TestStudent {
    public static void main(String[] args) {
        Student[] s1=new Student[]{
               new English(23,"小李","女",20,85,78,88),
                new Computer(30,"小张","男",21,78,79,90,88),
                new Literature(7,"小红","女",20,87,78,89,98)
        };
        for (int i = 0; i < s1.length; i++) {
            System.out.println();
            System.out.println("学号；"+s1[i].sno+"姓名；"+s1[i].name+"性别；"+s1[i].sex+"年龄；"+s1[i].age+"综合成绩；"+s1[i].getGrade());

        }

    }
}
